import java.util.Comparator;


public class CarneComparator implements Comparator<Alumno> {

	public int compare(Alumno al1, Alumno al2) {
		Integer int1 = al1.getCarnet();
		Integer int2 = al2.getCarnet();
		return (int1 - int2);
	}

}
